﻿@model Kaqaz.Models.Account.ChangePassword

@{
    ViewBag.Title = "Change Password";
}

<h2>@Resource.ChangePassword</h2>
<p>
    @Resource.MinimumPasswordRequredMessage
</p>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, Resource.UnsuccessfulPasswordChange)
    <div>
        <fieldset>
            <legend>@Resource.ChangePassword</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.OldPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.NewPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword)
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <input type="submit" value="@Resource.ChangePassword" />
            </p>
        </fieldset>
    </div>
}
